from django.conf.urls.defaults import *
from django.contrib import admin
from django.conf import settings

admin.autodiscover()
   
urlpatterns = patterns('',
    (r'^admin/', include(admin.site.urls)),
    (r'^accounts/', include('registration.urls')),
    (r'^connectpeople/', include('contifyuser.urls')),
    (r'^connectpeople/startGroup', include('StartGroup.urls')),
    (r'^connectpeople/groupevents', include('groupevents.urls')),
    (r'^connectpeople/discussion', include('discussions.urls')),
    (r'^connectpeople/groupinfo', include('groupInfo.urls')),
    (r'^connectpeople/groupMembers', include('groupMembers.urls')),
     (r'^' + settings.MEDIA_URL + '(?P<path>.*)$', 'django.views.static.serve',
            {'document_root': settings.MEDIA_ROOT}
        ),


)
if settings.DEBUG:
    urlpatterns += patterns('django.views.static',
    (r'^static_media/(?P<path>.*)$', 
        'serve', {
        'document_root': '/home/aashish/code/connectpeople/media',
        'show_indexes': True }),)